namespace Framework.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class addAnnouncement : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "Announcement",
                c => new
                    {
                        AnnouncementId = c.Int(nullable: false, identity: true),
                        Body = c.String(),
                        Content = c.String(),
                        ContentEn = c.String(),
                        CreatedTime = c.DateTime(nullable: false),
                        Status = c.Boolean(nullable: false),
                    })
                .PrimaryKey(t => t.AnnouncementId);
            
        }
        
        public override void Down()
        {
            DropTable("Announcement");
        }
    }
}
